package cn.edu.hbsi.domain;

public class Driver
{
    private Integer dId;
    private String dName;
    private Integer age;
    private Car car;
    private Area area;

    public Driver() {
    }

    public Driver(String dName, Integer age, Car car, Area area) {
        this.dName = dName;
        this.age = age;
        this.car = car;
        this.area = area;
    }

    public Driver(Integer dId, String dName, Integer age, Car car, Area area) {
        this.dId = dId;
        this.dName = dName;
        this.age = age;
        this.car = car;
        this.area = area;
    }

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return "Driver{" +
                "dId=" + dId +
                ", dName='" + dName + '\'' +
                ", age=" + age +
                ", car=" + car +
                ", area=" + area +
                '}';
    }
}
